package com.distribute.pojo.Task;

import com.distribute.pojo.enums.TaskType;

import java.util.List;

/**
 * @author Zhen
 * @version 1.0
 * @description: TODO
 * @date 2025/7/4 14:01
 */
public class DependentTaskDefinition extends TaskDefinition{

    private DependentTaskParams taskParams;

    private TaskType taskType = TaskType.DEPENDENT;

    public TaskType getTaskType() {
        return taskType;
    }

    public void setTaskType(TaskType taskType) {
        this.taskType = taskType;
    }

    public DependentTaskParams getTaskParams() {
        return taskParams;
    }

    public void setTaskParams(DependentTaskParams taskParams) {
        this.taskParams = taskParams;
    }

    static class DependentTaskParams {

        private List localParams;

        private List resourceList;

        private DependentParams dependences;

        public List getLocalParams() {
            return localParams;
        }

        public void setLocalParams(List localParams) {
            this.localParams = localParams;
        }

        public List getResourceList() {
            return resourceList;
        }

        public void setResourceList(List resourceList) {
            this.resourceList = resourceList;
        }

        public DependentParams getDependences() {
            return dependences;
        }

        public void setDependences(DependentParams dependences) {
            this.dependences = dependences;
        }
    }

    static class DependentParams {

        private String relation;

        private List dependTaskList;

        public String getRelation() {
            return relation;
        }

        public void setRelation(String relation) {
            this.relation = relation;
        }

        public List getDependTaskList() {
            return dependTaskList;
        }

        public void setDependTaskList(List dependTaskList) {
            this.dependTaskList = dependTaskList;
        }
    }
}
